﻿@model KinoDB.Viewmodels.Internal.CreateResponsibility.CreateResponsibilityViewModel
@{
    ViewBag.Title = "CreateResponsibility";
}

<h2>Neue Zuständigkeit</h2>

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken();
    
    <div class="form-horizontal">
        @Html.ValidationSummary(true)
        
        <h4>@Model.Name</h4>
        <hr/>
        
        <div class="form-group">
            @Html.Label("Kinosaal", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownListFor(model => model.Selection, new SelectList(Model.RoomDictionary, "Key", "Value", Model.Selection))
            </div>
        </div>
        
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "DutyManagement")
</div>

